{php include wl_template('common/header');}
<!-- page 容器 -->
<div class="page">
  <!-- 标题栏 -->
  <header class="bar bar-nav">
    <a class="icon icon-me pull-left open-panel"></a>
    <h1 class="title">{$coverinfo[$role]['rolename']}功能</h1>
  </header>

  <!-- 这里是页面内容区 -->
  <div class="content" name="main">
    {if $role=='admin'|$role=='teacher'}
    <div class="content-block">
      <p><a href="{php echo app_url('scangenerate/generate/'.$coverinfo[$role]['generate']);}" class="button button-big button-round">生成二维码：用于绑定{$coverinfo[$role]['downdevice']}与{$coverinfo[$role]['downrolename']} </a></p>
    </div>
    <div class="content-block">
      <p><a href="{php echo app_url('unbind/unbinddown/'.$coverinfo[$role]['unbinddown']);}" class="button button-big button-round button-danger">解绑：用于解绑{$coverinfo[$role]['downdevice']}与{$coverinfo[$role]['downrolename']} </a></p>
    </div>
    {/if}
    <div class="content-block">
      <p><a href="{php echo app_url('unbind/unbindself/'.$coverinfo[$role]['unbindself']);}" class="button button-big button-round button-warning">解绑自身：用于解绑{$coverinfo[$role]['selfdevice']}与自身 </a></p>
    </div>    
   </div>
</div>

<!-- popup, panel 等放在这里 -->
<div class="panel-overlay"></div>

{php include wl_template('common/footer');}
	